<fieldset class="layui-elem-field layui-field-title">
    <legend>项目跟踪 </legend>
</fieldset>


<div class="container">
<table class="layui-table">
    <colgroup>
        <col width="220">
        <col >
        <col >
        <col >
    </colgroup>

    <thead>
    <tr>
        <th>项目</th>
        <th>签约超时</th>
        <th>完工超时</th>
        <th>收款超时</th>
    </tr>
    </thead>

    <tbody>



    <?php
    for ($i = 0; $i < count($case_checkpoint); $i++) {
        ?>

        <tr >

            <? if((!$case_checkpoint[$i]['startdate']) or ($case_checkpoint[$i]['startdate']=="0000-00-00 00:00:00")) {$case_checkpoint[$i]['startdate']=date("Y-m-d h:i:s");}?>
            <? if((!$case_checkpoint[$i]['enddate']) or ($case_checkpoint[$i]['enddate']=="0000-00-00 00:00:00"))  {$case_checkpoint[$i]['enddate']=date("Y-m-d h:i:s");}?>
            <? if((!$case_checkpoint[$i]['paydate']) or ($case_checkpoint[$i]['paydate']=="0000-00-00 00:00:00"))  {$case_checkpoint[$i]['paydate']=date("Y-m-d h:i:s");}?>

            <td><a href="case/detail-edit.php?nid=<?echo $case_checkpoint[$i]['nid']?>&nav-itemed=case" ><?echo $case_checkpoint[$i]['name']?></a></td>
            <td><?echo count_days($case_checkpoint[$i]['expect_startdate'],$case_checkpoint[$i]['startdate'])?></td>
            <td><?echo count_days($case_checkpoint[$i]['expect_enddate'],$case_checkpoint[$i]['enddate'])?></td>
            <td><?echo count_days($case_checkpoint[$i]['expect_paydate'],$case_checkpoint[$i]['paydate'])?></td>


        </tr>
    <?}?>


    </tbody>
</table>
</div>